package com.tj.admin.auth.enums;

import com.fqgj.exception.enums.ErrorCodeEnum;
import org.springframework.http.HttpStatus;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-09-28 17:27
 **/
public enum PictureRestErrorEnum implements ErrorCodeEnum {

    PICTURE_NULL(70001, "Please select excel to upload", HttpStatus.OK),
    PICTURE_OVER_SIZE(70002, "File size cannot exceed 10M", HttpStatus.OK),
    PICTURE_UPLOAD(70003, "Uploading excel failed", HttpStatus.OK),
    HAS_NOT_FINISHED_ORDER3(70004, "Please apply loan after finishing current order", HttpStatus.OK);

    PictureRestErrorEnum(Integer code, String desc, HttpStatus httpStatus) {
        this.code = code;
        this.desc = desc;
        this.httpStatus = httpStatus;
    }

    private Integer code;
    private String desc;
    private HttpStatus httpStatus;

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return desc;
    }

    public PictureRestErrorEnum setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getDesc() {
        return desc;
    }

    public PictureRestErrorEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }

    public PictureRestErrorEnum setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
        return this;
    }


}
